
//         :
//
// TODO_GUN -    
// TODO_BOMB_HOLDERS -    BombHolder
// TODEV -     

class_name = "CPlane"
object_name = "Sopwith Camel"
detail_type = "DET_PLANE" //list of types is in \inc\SimulationSystem\DetailTypes.inc

[COCKPIT_LIMITS]
x= -0.18, 0.05
y= -0.08, 0.1
z= -0.25, 0.25
[END]

[OPEN_COCKPIT_LIMITS]
x= -0.18, 0.05
y= -0.08, 0.2
z= -0.4, 0.4
[END]

//////	PhysicsBody properties
//VisualImage = <int TYPE>,<string File_PathName>,<bool cast_shadows>

VisualImage=0,"graphics/Planes/SopCamel/SopCamel.mgm",true,true
VisualImage=1,"graphics/Planes/SopCamel/SopCamel-C.mgm",false
DistantLOD="LuaScripts/WorldObjects/Planes/DistantLODs/SopCamel_Distant.txt"
DLODArgs=50380,57200
Fragment="LuaScripts/WorldObjects/Planes/Fragments/SopCamel_Fragment.txt"

//VisualImage=ID,model_or_effect,cast_shadows[,debris_effects]
//ID:					INT:	0 - visible everywhere, 1 - visible inside, 2 - visible outside
//model_or_effect:		STRING:	path to model file (mgm) of effect file (epl)
//cast_shadows: 		BOOL:	cast shadows from object or not
//[,debris_effects]:	BOOL:	optional parameter, show effects on object debris or not

ImageAttr=345	// IA_NOCLIP | IA_CLOSEVIEWARG | IA_NOMINPIXELS | IA_NOMINZ | IA_SCALEARG
//	IA_DEFAULT=0,
//	IA_NOCLIP=1,
//	IA_NOCLIP_ANIM=2,
//	IA_NOROTINTERPOLATION=4,
//	IA_NOMINZ=8,
//	IA_NOMINPIXELS=16,
//	IA_NOPOSINTERPOLATION=32,
//	IA_CLOSEVIEWARG=64,
//	IA_ALWAYSVISIBLE=128,
//	IA_SCALEARG=256,
//	ImageAttr=Attr1+Attr2+...+AttrN

CollisionBody="graphics/Planes/SopCamel/SopCamel.col"

SoundScript="LuaScripts/Sound/Planes/SopCamel.cfg"

HidePeriodAfterExplosion = 3.0

DropsArg=100
HumidityArg=101

SetCockpitArgs=false	// true -             , false -              

//CockpitArg= FetchType, CmdID, SubcmdID, ArgNum, ArgValDefault, SmoothingType, SmoothingPower, NetworkFlag
//FetchType=-1:       
//FetchType=-2:         
//FetchType=-3:          parent-
//FetchType>=0:          child-   Attach ID
//CmdID=[0..999]: ID    ,    .
//CmdID=[1000..1999]: ID    ,    .
//SubcmdID=[0..3]: ID     .
//SubcmdID=[0..1]: ID     .
//ArgNum:     / .
//ArgValDefault:      ,    .
//SmoothingType: smooth_clamp -  - 
//SmoothingType: smooth_wrap -   
//SmoothingPower:   
//NetworkFlag="":           ,  SetCockpitArgs=false
//NetworkFlag="low_freq":     ,       ,    
//NetworkFlag="med_freq":     ,       ,    
//NetworkFlag="high_freq":     ,       ,    
//NetworkFlag="granted_single":     ,       ,     

// TODEV
//           ,         Fokker Dr.1 (   ).
// 1113 -        (0 - , 1 - )
// 2300 -      (0 -  , 1 -  )
// 2341 -           (0 - , 1 - )

//  
CockpitArg = -2, 0000, 0, 00402, 0.500, "smooth_clamp", 0.0, "" //  -   
CockpitArg = -2, 1000, 0, 00406, 0.500, "smooth_clamp", 0.0, "" //  -   
CockpitArg = -2, 1000, 1, 00407, 0.500, "smooth_clamp", 0.0, "" //  -   
//  
CockpitArg = -2, 0100, 0, 01100, 0.000, "smooth_clamp", 0.1, "" //  ( )
CockpitArg = -2, 0100, 1, 01111, 0.000, "smooth_clamp", 0.1, "" //      ( )
CockpitArg = -2, 0106, 2, 01150, 0.000, "smooth_clamp", 0.1, "" //   () 
CockpitArg = -2, 0103, 0, 01152, 0.000, "smooth_clamp", 0.1, "" //  1-  ()
CockpitArg = -2, 0103, 1, 01153, 0.000, "smooth_clamp", 0.1, "" //  2-  ()
CockpitArg = -2, 0353, 1, 02301, 0.000, "smooth_clamp", 0.1, "" // 
//        
CockpitArg = -2, 1200, 0, 03102, 0.000, "smooth_clamp", 0.1, "" // RPM
CockpitArg = -2, 1203, 0, 02531, 0.000, "smooth_clamp", 0.1, "" //     
CockpitArg = -2, 0350, 0, 02501, 1.000, "smooth_clamp", 0.1, "" // 
// - 
CockpitArg = -2, 0400, 0, 08511, 0.000, "smooth_wrap",  0.1, "" //  -  
CockpitArg = -2, 0400, 1, 08512, 0.000, "smooth_wrap",  0.1, "" //  -  
CockpitArg = -2, 1400, 0, 08513, 0.000, "smooth_wrap",  0.1, "" //  -  
CockpitArg = -2, 0401, 2, 00206, 0.500, "smooth_clamp", 0.5, "" //   
CockpitArg = -2, 0401, 3, 00205, 0.500, "smooth_clamp", 0.5, "" //   
CockpitArg = -2, 1400, 1, 00204, 0.000, "smooth_wrap",  0.2, "" //  
CockpitArg = -2, 0401, 1, 08171, 0.500, "smooth_clamp", 0.1, "" //  
CockpitArg = -2, 1403, 0, 08201, 0.000, "smooth_clamp", 0.1, "" //   () 
CockpitArg = -2, 1402, 0, 08251, 0.000, "smooth_clamp", 0.1, "" //    -  
CockpitArg = -2, 0402, 0, 08253, 0.877, "smooth_wrap",  0.1, "" //    -  . Default = 760 ...
//   ()
CockpitArg = -2, 0430, 1, 60210, 0.000, "smooth_clamp", 0.0, "" //   
//  
CockpitArg = -2, 0490, 0, 09004, 0.000, "smooth_clamp", 0.1, "" //   

//   :
// 14130 -   
// 20001 -    
// 20002 - motion blure  

//  .:
// 19001 -  
// 19002 -    
// 19003 -    

//   :
// 0


[attach=0]
	position= -0.25, -0.02, 0.0
	object = "LuaScripts/WorldObjects/Bots/BotPilot_Spad13.txt"
[end]

[attach=1]
	position= -0.25,1.23,0.0
	rotation= 0, 0, 30
	object = "LuaScripts/WorldObjects/FlareGun.txt"
[end]

[attach=2]
	position= 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/Spotter.txt"
[end]

[attach=3]
	position= -0.544, 1.107, 2.216
	rotation= 90, 0, 6
	convex = "Krilo_Top_R_2"
//	object = "LuaScripts/WorldObjects/Banner.txt"
[end]

AttachedCameras = "LuaScripts/WorldObjects/fixcameras/Planes/SopCamel.txt"

BannerAttachID=3
CustomPhotoArg=55

SendRate=5,50	//normal, attached state

CommandMonitor="LuaScripts/WorldObjects/FokkerMonitor.txt"


//////	Controled body specific
CockpitFocus=0.5,-1,0,60,0.6

Plane_Class="CAeroplane_Sopwith_Camel"

InitialSpeedInAir = 120.0 // ,      , /

//  ,   aimingHelper()
Gun_Coord0= 1.06, 0.579, -0.134
Gun_Coord1= 1.06, 0.579,  0.134
Deviation0= 3, 2, 0.9, 0.02, 0.1
Deviation1= 3, 2, 0.9, 0.02, 0.1

ParallaxDistance = 150.0

MinCartridgeCaseTime = 0.05 //       

FTCoord=0.165, -0.478, 0
PPCoord=0.427,  0.192, 0

FlarePos= -0.25,1.23,0.0
FlareDir= 0.5, 0.9, 0.0
FlarePath="LuaScripts/WorldObjects/Ballistics/Flare.txt"

GunsightPosition = 0.165,0.741,-0.000

//   

[WeaponMode=0]
	WMname="default"
	WMgroup="default"
	PlaneModArg=-1
	TurretID=-1
	TurretDefault=""
	TurretMod=""

	[Gun=0]
		GunType = "LuaScripts/WorldObjects/Weapons/MG_ROF_Vickers_MK1_boost.txt"
		MaxReservedMagazines = 0
		WeaponGroup1 = true //  
		AttachToPart = "Fuse_0"
		DamageConvex = "~gun01_ammo"
		ProbabilityOfHit = 0.05
		CarriagePosition = 1.060, 0.579, -0.134 //      (  )   
		CarriageYawPitchRoll = 0.0, 0.0, 0.0
		CarriageMass = 0.01 //  
		CarriageMassPosition_inCarriageAxis = 0.0, 0.0, 0.0
		CarriageMOI_inCarriageAxis = 0.016, 0.016, 0.016, 0, 0, 0 //   
		CarriageCxaS = 0.0 //  
		CarriageDragPosition = 1.060, 0.579, -0.134 //  
		DefaultGunPosition = 1.060, 0.579, -0.134 //   
		DefaultGunYawPitchRoll = 0.0, 0.0, 0.0
		DefaultGunCxaS = 0.0 //  
		DefaultGunDragPosition = 1.060, 0.579, -0.134 //  
		BarrelTemperatureDecreaseCorrectionData = 1.0, 4.0, 300.0
		CarriageAdditionalBulletDispertionAngle = 0.0315723, 0.061884	//      ,     -3  102.4..118  200.    "  "  -2 54  50.
		AmmunitionAttachToPart = "Fuse_0" //  CollisionBox   ,      
		AmmunitionPosition = 0.0, 0.0, 0.0 //  ..      , [] // TODO_GUN
		CartridgeCasesEjection = true
		CartridgeCasesEjectionPosition = 0.479, 0.030, -0.530 //           , []
		CartridgeCasesEjectionSpeed = 0, -1, -1 //            , [/]
		FireButtonArgIdx = 9000
		AzimuthDeviationArgIdx = 9012
		ElevationDeviationArgIdx = 9013
		FlashAnimationArgIdx = 9040
		DrawAnimationArgIdx = 1, 9016 //     ,     
		DrawAnimationArgIdx = 3, 9070 //     
		FlashAnimationGroup = 0 // Light Arg 60220
		GunSoundsIdx = 1
		ShotSoundType = 1
		AfterServiceOperationDelay = 0.3
		ReArmTime = 60 //  
		isElectroTrigger = false
		IsOnlyMechanicalManualCocking = true
		IsTwoManualCockingMethods = false
		[Synchronizer=1] // Sopwith-Kauper,   , 2   1   ,   -12.0
			minRPM = 0.0
			Point = 358.0, 0.0
			Point = 360.0, 0.4
			Point = 0.0, 0.4
			Point = 3.0, 1.0
			Point = 8.0, 0.0
			Point = 178.0, 0.0
			Point = 183.0, 1.0
			Point = 188.0, 0.0
		[end]
	[end]

	[Gun=1]
		GunType = "LuaScripts/WorldObjects/Weapons/MG_ROF_Vickers_MK1_boost.txt"
		MaxReservedMagazines = 0
		WeaponGroup1 = true //  
		AttachToPart = "Fuse_0"
		DamageConvex = "~gun01_ammo"
		ProbabilityOfHit = 0.05
		CarriagePosition = 1.060, 0.579, 0.134 //      (  )   
		CarriageYawPitchRoll = 0.0, 0.0, 0.0
		CarriageMass = 0.01 //  
		CarriageMassPosition_inCarriageAxis = 0.0, 0.0, 0.0
		CarriageMOI_inCarriageAxis = 0.016, 0.016, 0.016, 0, 0, 0 //   
		CarriageCxaS = 0.0 //  
		CarriageDragPosition = 1.060, 0.579, 0.134 //  
		DefaultGunPosition = 1.060, 0.579, 0.134 //   
		DefaultGunYawPitchRoll = 0.0, 0.0, 0.0
		DefaultGunCxaS = 0.0 //  
		DefaultGunDragPosition = 1.060, 0.579, 0.134 //  
		BarrelTemperatureDecreaseCorrectionData = 1.0, 4.0, 300.0
		CarriageAdditionalBulletDispertionAngle = 0.0315723, 0.061884	//      ,     -3  102.4..118  200.    "  "  -2 54  50.
		AmmunitionAttachToPart = "Fuse_0" //  CollisionBox   ,      
		AmmunitionPosition = 0.0, 0.0, 0.0 //  ..      , [] // TODO_GUN
		CartridgeCasesEjection = true
		CartridgeCasesEjectionPosition = 0.479, 0.030, 0.530 //           , []
		CartridgeCasesEjectionSpeed = 0, -1, 1 //            , [/]
		FireButtonArgIdx = 9001
		AzimuthDeviationArgIdx = 9022
		ElevationDeviationArgIdx = 9023
		FlashAnimationArgIdx = 9050
		DrawAnimationArgIdx = 1, 9026 //     ,     
		DrawAnimationArgIdx = 3, 9080 //     
		FlashAnimationGroup = 0 // Light Arg 60220
		GunSoundsIdx = 2
		ShotSoundType = 1
		AfterServiceOperationDelay = 0.3
		ReArmTime = 60 //  
		isElectroTrigger = false
		IsOnlyMechanicalManualCocking = true
		IsTwoManualCockingMethods = false
		[Synchronizer=1] // Sopwith-Kauper,   , 2   1   ,   +12.0
			minRPM = 0.0
			Point = 22.0, 0.0
			Point = 27.0, 1.0
			Point = 32.0, 0.0
			Point = 202.0, 0.0
			Point = 207.0, 1.0
			Point = 212.0, 0.0
		[end]
	[end]
[end]

[WeaponMode=1]
	WMname="SopCamel_Aldis"
	WMgroup="1"
	PlaneModArg=19001
	TurretID=-1
	TurretDefault=""
	TurretMod=""

	[AdditionalElement]
		AttachToPart = "Fuse_0"
		Position = 0.394, 0.539, 0.043
		Mass = 2.0
		CxaS = 0.01
	[end]
[end]

[WeaponMode=2]
	WMname="SopCamel_WingCut"
	WMgroup="2"
	PlaneModArg=19002
	TurretID=-1
	TurretDefault=""
	TurretMod=""

	[AdditionalElement] //  
		AttachToPart = "Fuse_0"
		Position = 0.42, 1.18, 0.0
		Mass = 0.0
		CxaS = 0.02
	[end]
[end]

[WeaponMode=3]
	WMname="SopCamel_CockpitLight"
	WMgroup="3"
	PlaneModArg=19003
	TurretID=-1
	TurretDefault=""
	TurretMod=""

	[AdditionalElement]
		AttachToPart = "Fuse_0"
		Position = -0.286, 0.292, 0.353
		Mass = 0.5
		CxaS = 0.0
	[end]
[end]

[WeaponMode=4]
	WMname="SopCamel_Bombs"
	WMgroup="4"
	PlaneModArg=-1
	TurretID=-1
	TurretDefault=""
	TurretMod=""
[end]


//   

AmmunitionArg=12900

[Ammunition=0]
	WeaponModes=-4
	AnimationVal=0.75
	name="0,1-VickersMk1-AP-1000"
	GunAmmunition0=1
	GunAmmunition1=1
	Bomb0=-1
	PrimaryAimingGun=0
[end]
[Ammunition=1]
	WeaponModes=-4
	AnimationVal=0.75
	name="0,1-VickersMk1-AP-500"
	GunAmmunition0=0
	GunAmmunition1=0
	Bomb0=-1
	PrimaryAimingGun=0
[end]
[Ammunition=2]
	WeaponModes=4
	AnimationVal=0.25
	name="0,1-VickersMk1-AP-1000 + Cooper24lb-4"
	GunAmmunition0=1
	GunAmmunition1=1
	Bomb0=0, "LuaScripts/WorldObjects/Ballistics/Bombs/BOMB_GBR_24lb.txt"
	Bomb1=1, "LuaScripts/WorldObjects/Ballistics/Bombs/BOMB_GBR_24lb.txt"
	Bomb2=2, "LuaScripts/WorldObjects/Ballistics/Bombs/BOMB_GBR_24lb.txt"
	Bomb3=3, "LuaScripts/WorldObjects/Ballistics/Bombs/BOMB_GBR_24lb.txt"
	PrimaryAimingGun=0
[end]
[Ammunition=3]
	WeaponModes=4
	AnimationVal=0.25
	name="0,1-VickersMk1-AP-1000 + Cooper24lb-2"
	GunAmmunition0=1
	GunAmmunition1=1
	Bomb0=-1
	Bomb1=1, "LuaScripts/WorldObjects/Ballistics/Bombs/BOMB_GBR_24lb.txt"
	Bomb2=2, "LuaScripts/WorldObjects/Ballistics/Bombs/BOMB_GBR_24lb.txt"
	Bomb3=-1
	PrimaryAimingGun=0
[end]

[Ammunition=4]
	WeaponModes=-4
	AnimationVal=0.75
	name="empty"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=-1
	PrimaryAimingGun=0
[end]

[Ammunition=5]
	WeaponModes=-4
	AnimationVal=0.75
	name="SmokeGenWhiteOne-1"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=4, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	PrimaryAimingGun=0
[end]
[Ammunition=6]
	WeaponModes=-4
	AnimationVal=0.75
	name="SmokeGenWhiteTwo-2"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=5, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Bomb1=6, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	PrimaryAimingGun=0
[end]
[Ammunition=7]
	WeaponModes=-4
	AnimationVal=0.75
	name="SmokeGenBlueOne-1"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=7, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	PrimaryAimingGun=0
[end]
[Ammunition=8]
	WeaponModes=-4
	AnimationVal=0.75
	name="SmokeGenBlueTwo-2"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=8, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Bomb1=9, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	PrimaryAimingGun=0
[end]
[Ammunition=9]
	WeaponModes=-4
	AnimationVal=0.75
	name="SmokeGenRedOne-1"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=10, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	PrimaryAimingGun=0
[end]
[Ammunition=10]
	WeaponModes=-4
	AnimationVal=0.75
	name="SmokeGenRedTwo-2"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=11, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Bomb1=12, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	PrimaryAimingGun=0
[end]
[Ammunition=11]
	WeaponModes=-4
	AnimationVal=0.75
	name="SmokeGenGreenOne-1"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=13, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	PrimaryAimingGun=0
[end]
[Ammunition=12]
	WeaponModes=-4
	AnimationVal=0.75
	name="SmokeGenGreenTwo-2"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=14, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Bomb1=15, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	PrimaryAimingGun=0
[end]
[Ammunition=13]
	WeaponModes=-4
	AnimationVal=0.75
	name="SmokeGenYellowOne-1"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=16, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	PrimaryAimingGun=0
[end]
[Ammunition=14]
	WeaponModes=-4
	AnimationVal=0.75
	name="SmokeGenYellowTwo-2"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=17, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Bomb1=18, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	PrimaryAimingGun=0
[end]
[Ammunition=15]
	WeaponModes=-4
	AnimationVal=0.75
	name="SmokeGenBlackOne-1"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=19, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	PrimaryAimingGun=0
[end]
[Ammunition=16]
	WeaponModes=-4
	AnimationVal=0.75
	name="SmokeGenBlackTwo-2"
	GunAmmunition0=-1
	GunAmmunition1=-1
	Bomb0=20, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Bomb1=21, "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	PrimaryAimingGun=0
[end]

DefaultAmmunition=0

//  

[GunAmmunition=0]
	ExpendableMass = 1.0 //  RoF     .       - TODEV ?
	ResidualMass = 0 // TODEV ?
	MaxMisFiresInMagazine=1
	MaxRoundsInMagazine=500
	RoundsInMagazine=250
	ReservedMagazines=0
	AmountRoundsWithOneTracer=3	//  3-   
	TracerIdx=0
	object0="LuaScripts/WorldObjects/Ballistics/Projectiles/BULLET_ENG_7-7x56_APsmk.txt"
	BushConfig = "LuaScripts/WorldObjects/Trash/Batch_case07-08mm.txt"
[end]
[GunAmmunition=1]
	ExpendableMass = 1.0 //  RoF     .       - TODEV ?
	ResidualMass = 0 // TODEV ?
	MaxMisFiresInMagazine=3
	MaxRoundsInMagazine=500
	RoundsInMagazine=500
	ReservedMagazines=0
	AmountRoundsWithOneTracer=3	//  3-   
	TracerIdx=0
	object0="LuaScripts/WorldObjects/Ballistics/Projectiles/BULLET_ENG_7-7x56_APsmk.txt"
	BushConfig = "LuaScripts/WorldObjects/Trash/Batch_case07-08mm.txt"
[end]

//   

[attach=20]
	position= -0.12, -0.618, -0.2
	convex = "Fuse_0"
[end]
[attach=21]
	position= -0.12, -0.618, -0.067
	convex = "Fuse_0"
[end]
[attach=22]
	position= -0.12, -0.618, 0.067
	convex = "Fuse_0"
[end]
[attach=23]
	position= -0.12, -0.618, 0.2
	convex = "Fuse_0"
[end]

//   

[attach=24]
	position= -3.548,0.253,0.711
	convex = "GO_R"
	rotation= 0, 0, -1.5
[end]
[attach=25]
	position= 0.131,1.140,-3.645
	convex = "Krilo_Top_L_3"
	rotation= 0, 0, 5.0
[end]
[attach=26]
	position= 0.131,1.140,3.645
	convex = "Krilo_Top_R_3"
	rotation= 0, 0, 5.0
[end]

//  

[BombHolder=0]
	AttachIdx = 20
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/BOMB_GBR_24lb.txt"
    Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	PushDir   = 1.0, 0.0, 0.0
	AttachPos  = -0.12, -0.618, -0.2
    Convex = "Fuse_0"
	BombHolderMass = 3.0	//  
	BombHolderCxaS = 0.004	//  
	AttachedBombCxaS = 0.006
	DamagedPushProp = 0.005
	ThrowSoundType = 2
[end]
[BombHolder=1]
	AttachIdx = 21
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/BOMB_GBR_24lb.txt"
    Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	PushDir   = 1.0, 0.0, 0.0
	AttachPos  = -0.12, -0.618, -0.067
    Convex = "Fuse_0"
	BombHolderMass = 3.0	//  
	BombHolderCxaS = 0.004	//  
	AttachedBombCxaS = 0.006
	DamagedPushProp = 0.005
	ThrowSoundType = 2
[end]
[BombHolder=2]
	AttachIdx = 22
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/BOMB_GBR_24lb.txt"
    Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	PushDir   = 1.0, 0.0, 0.0
	AttachPos  = -0.12, -0.618, 0.067
    Convex = "Fuse_0"
	BombHolderMass = 3.0	//  
	BombHolderCxaS = 0.004	//  
	AttachedBombCxaS = 0.006
	DamagedPushProp = 0.005
	ThrowSoundType = 2
[end]
[BombHolder=3]
	AttachIdx = 23
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/BOMB_GBR_24lb.txt"
    Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	PushDir   = 1.0, 0.0, 0.0
	AttachPos  = -0.12, -0.618, 0.2
    Convex = "Fuse_0"
	BombHolderMass = 3.0	//  
	BombHolderCxaS = 0.004	//  
	AttachedBombCxaS = 0.006
	DamagedPushProp = 0.005
	ThrowSoundType = 2
[end]

//  

[BombHolder=4]
	AttachIdx = 24
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = -3.548,0.253,0.711
	convex = "GO_R"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 1 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]
[BombHolder=5]
	AttachIdx = 25
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = 0.131,1.140,-3.645
	convex = "Krilo_Top_L_3"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 1 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]
[BombHolder=6]
	AttachIdx = 26
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = 0.131,1.140,3.645
	convex = "Krilo_Top_R_3"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 1 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]

//  

[BombHolder=7]
	AttachIdx = 24
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = -3.548,0.253,0.711
	convex = "GO_R"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 2 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]
[BombHolder=8]
	AttachIdx = 25
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = 0.131,1.140,-3.645
	convex = "Krilo_Top_L_3"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 2 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]
[BombHolder=9]
	AttachIdx = 26
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = 0.131,1.140,3.645
	convex = "Krilo_Top_R_3"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 2 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]

//  

[BombHolder=10]
	AttachIdx = 24
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = -3.548,0.253,0.711
	convex = "GO_R"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 3 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]
[BombHolder=11]
	AttachIdx = 25
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = 0.131,1.140,-3.645
	convex = "Krilo_Top_L_3"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 3 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]
[BombHolder=12]
	AttachIdx = 26
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = 0.131,1.140,3.645
	convex = "Krilo_Top_R_3"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 3 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]

//  

[BombHolder=13]
	AttachIdx = 24
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = -3.548,0.253,0.711
	convex = "GO_R"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 4 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]
[BombHolder=14]
	AttachIdx = 25
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = 0.131,1.140,-3.645
	convex = "Krilo_Top_L_3"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 4 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]
[BombHolder=15]
	AttachIdx = 26
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = 0.131,1.140,3.645
	convex = "Krilo_Top_R_3"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 4 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]

//  

[BombHolder=16]
	AttachIdx = 24
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = -3.548,0.253,0.711
	convex = "GO_R"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 5 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]
[BombHolder=17]
	AttachIdx = 25
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = 0.131,1.140,-3.645
	convex = "Krilo_Top_L_3"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 5 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]
[BombHolder=18]
	AttachIdx = 26
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = 0.131,1.140,3.645
	convex = "Krilo_Top_R_3"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 5 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]

//  

[BombHolder=19]
	AttachIdx = 24
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = -3.548,0.253,0.711
	convex = "GO_R"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 6 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]
[BombHolder=20]
	AttachIdx = 25
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = 0.131,1.140,-3.645
	convex = "Krilo_Top_L_3"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 6 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]
[BombHolder=21]
	AttachIdx = 26
	ReloadTime = 3
	object = "LuaScripts/WorldObjects/Ballistics/Bombs/SMOKEGEN.txt"
	Direction = 1.0, 0.0, 0.0
	PushRange = 0.0, -0.02, 0.0
	Rotation = 0
	AttachPos = 0.131,1.140,3.645
	convex = "Krilo_Top_R_3"
	BombHolderMass = 0.0
	BombHolderCxaS = 0.0
	AttachedBombCxaS = 0.009
	DamagedPushProp = 0.005 //      Convex
	IsSmokeGenerator = 6 // 1-, 2-, 3-, 4-, 5-, 6-
	smokePositionShiftX = 0.0
	smokePositionShiftY = 0.0
[end]

rec_cockpit_arg=1

SmoothControlFactor=0

//,    ,       ,   
ObjectRadius=4.45

[Entrance]
	EntrancePos = -0.25, -0.02, 0.0
	EntranceRot = 0, 0, 0
	JumpDir= 0, 7, 1
[end]
[Entrance]
	EntrancePos = -0.25, -0.02, 0.0
	EntranceRot = 0, 0, 0
	JumpDir=2,6,1
	SelectorDir=0,2,0	//        2/
[end]

//   
SectorLimits = -180.0, -170.0, -25.0, +90.0
SectorLimits = -170.0, -145.0, -53.0, +90.0
SectorLimits = -145.0, -105.0, -45.0, +90.0
SectorLimits = -105.0, -75.0, -11.0, +6.0
SectorLimits = -75.0, -55.0, -32.0, +8.0
SectorLimits = -55.0, -15.0, -50.0, +16.0
SectorLimits = -15.0,  +15.0, -15.0, +51.0
SectorLimits = +15.0, +55.0, -50.0, +16.0
SectorLimits = +55.0, +75.0, -32.0, +8.0
SectorLimits = +75.0, +105.0, -11.0, +6.0
SectorLimits = +105.0, +145.0, -45.0, +90.0
SectorLimits = +145.0, +170.0, -53.0, +90.0
SectorLimits = +170.0, +180.0, -25.0, +90.0

//AIRPLANE DAMAGE

[PlanePartProtection]
	PartName = "~eng01"
	DirectHitArmor = 5.0
	SphereHitProtection = 5.0
[end]

SphereHitProtection=0

[SphereProtectionBoxOpen]	//    ,        ,   ,     SphereHitProtection=
	FovH=90					//          ,     ,  ArmorFront
	FovV=90					//          ,     ,  ArmorFront
							//  5        
	ArmorFront=5
	ArmorBack=0
	ArmorTop=0
	ArmorBottom=0
	ArmorRight=0
	ArmorLeft=0
[end]

[SphereProtectionBoxClose]	//    ,        ,   ,     SphereHitProtection=
	FovH=90					//          ,     ,  ArmorFront
	FovV=90					//          ,     ,  ArmorFront
							//  5        
	ArmorFront=5
	ArmorBack=0
	ArmorTop=0
	ArmorBottom=0
	ArmorRight=0
	ArmorLeft=0
[end]

TrashWood="LuaScripts/WorldObjects/Trash/Trash.txt"
TrashArmor="LuaScripts/WorldObjects/Trash/Trash.txt"

//  
logtreshold=0.0001

energyloss="",true,0.01,0.0				//    , true -       -,       ,        
energyloss="~ftank01",true,0.7,10000	// 
energyloss="~ftank02",true,0.7,10000	// 
energyloss="~gun01_ammo",true,0.7,20000	// 
energyloss="~eng01",true,5.0,20000		//
energyloss="~eng01_scr1",true,2.5,1000	//


SeekMaintenance = true
ReFuelFlow = 2 // liters per second
BombHolderReArmTime = 30 // seconds
RepairTime = 300 // seconds


/////   

min_CAS = 80
max_CAS = 290

DangerAoA = 10.0	// -   
CriticalAoA = 14.0	//   
Maxny = 4.5			// -  (: 6.8  V=290   )
minV = 80.0			// -   (V = V / sqrt(0.9)   )
DangerV = 290.0		//    
TakeOffV = 85.0		//   
ClimbV = 130.0		//     
IsLeftPedal = false	//     (true - , false - )

//IsTakeOffFlaps = false			//      
//MaxGearV = 0						// -     
//MaxFlapV = 0						// -      
//minVDeltaFlaps = 0				//    ,    
//DescendV = 0						//    
//OilMaxTemperature = 0				// -    
//WaterMaxTemperature = 0			// -    
//CylinderHeadMaxTemperature = 0	// -     